
#!/bin/sh
pid=$(netstat -anp|grep 1099|awk '{printf $7}'|cut -d/ -f1)
if [ $pid ]; then
kill -9 $pid
fi

nohup java \
-server    \
-Djava.util.concurrent.ForkJoinPool.common.parallelism=30   \
-Xms512m   \
-Xmx512m   \
-XX:MaxMetaspaceSize=256m \
-Xss512k   \
-XX:+UseConcMarkSweepGC \
-XX:CMSInitiatingOccupancyFraction=70 \
-Xloggc:./logs/gc/gc-%t.log \
-XX:+PrintGCDetails \
-XX:+PrintGCDateStamps \
-jar api-0.0.1-SNAPSHOT.jar >/dev/null 2>&1 &
